package com.irdstudio.apicenter.console.service.authenticate;

import java.sql.SQLException;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.irdstudio.apicenter.console.dm.AppwxRespAction;
import com.irdstudio.apicenter.console.dm.AppwxRespActionDao;

@Service(value = "appwxRespActionService")
public class AppwxRespActionService {

	@Autowired
	private AppwxRespActionDao appwxRespActionDao;

	public int insertOne(AppwxRespAction appwxRespAction) throws SQLException,
			ClassNotFoundException {
		return appwxRespActionDao.save(appwxRespAction);
	}

	public AppwxRespAction queryAppTradePrivate(String recordKey) throws SQLException {
		return appwxRespActionDao.queryWithKeys(recordKey);
	}

	public int update(AppwxRespAction appwxRespAction) throws SQLException,
			ClassNotFoundException {
		return appwxRespActionDao.update(appwxRespAction);
	}

	public int delete(String recordKey) throws SQLException,
			ClassNotFoundException {
		return appwxRespActionDao.delete(recordKey);
	}

}